package Io;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-04-05
 * Time: 22:21
 */
public class test11 {
    public static void main(String[] args) {
        File file = new File("666.txt");
        File file1 = new File("test.txt");
        System.out.println(file.exists());
        System.out.println(file1.exists());
        System.out.println(file.renameTo(file1));
        System.out.println(file.exists());
        System.out.println(file1.exists());
    }
}
